/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.base.entity.fixedexpense;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 固定费用项目Entity
 * @author Kilo
 * @version 2021-03-02
 */
@Table(name="t_currency_ladder_price", alias="a", columns={
		@Column(name="currency_ladder_price_id", attrName="currencyLadderPriceId", label="外币阶梯价格ID", isPK=true),
		@Column(name="currency_id", attrName="currencyId", label="币种"),
		@Column(name="start_amount", attrName="startAmount", label="起始金额"),
		@Column(name="end_amount", attrName="endAmount", label="结束金额"),
		@Column(name="sales_price", attrName="salesPrice", label="销售价格"),
		@Column(name="purchase_price", attrName="purchasePrice", label="采购价格"),
		@Column(name="fixed_expense_id", attrName="fixedExpenseId.fixedExpenseId", label="固定费用项目ID"),
	}, orderBy="a.currency_ladder_price_id ASC"
)
public class CurrencyLadderPrice extends DataEntity<CurrencyLadderPrice> {
	
	private static final long serialVersionUID = 1L;
	private String currencyLadderPriceId;		// 外币阶梯价格ID
	private String currencyId;		// 币种
	private Double startAmount;		// 起始金额
	private Double endAmount;		// 结束金额
	private Double salesPrice;		// 销售价格
	private Double purchasePrice;		// 采购价格
	private FixedExpense fixedExpenseId;		// 固定费用项目ID 父类
	
	public CurrencyLadderPrice() {
		this(null);
	}


	public CurrencyLadderPrice(FixedExpense fixedExpenseId){
		this.fixedExpenseId = fixedExpenseId;
	}
	
	public String getCurrencyLadderPriceId() {
		return currencyLadderPriceId;
	}

	public void setCurrencyLadderPriceId(String currencyLadderPriceId) {
		this.currencyLadderPriceId = currencyLadderPriceId;
	}
	
	@Length(min=0, max=2, message="币种长度不能超过 2 个字符")
	public String getCurrencyId() {
		return currencyId;
	}

	public void setCurrencyId(String currencyId) {
		this.currencyId = currencyId;
	}
	
	public Double getStartAmount() {
		return startAmount;
	}

	public void setStartAmount(Double startAmount) {
		this.startAmount = startAmount;
	}
	
	public Double getEndAmount() {
		return endAmount;
	}

	public void setEndAmount(Double endAmount) {
		this.endAmount = endAmount;
	}
	
	public Double getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(Double salesPrice) {
		this.salesPrice = salesPrice;
	}
	
	public Double getPurchasePrice() {
		return purchasePrice;
	}

	public void setPurchasePrice(Double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}
	
	public FixedExpense getFixedExpenseId() {
		return fixedExpenseId;
	}

	public void setFixedExpenseId(FixedExpense fixedExpenseId) {
		this.fixedExpenseId = fixedExpenseId;
	}
	
}